<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>后台管理系统</title>
    <link rel="stylesheet" href="/static/admin/layui/css/layui.css">
    <link rel="stylesheet" href="/static/admin/css/common.css">
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    {include file="common/top"}
    {include file="common/left"}
</div>
<div class="main-container">
    <!-- 面包屑 -->
    <!-- lay-separator="-" -->
    <span class="layui-breadcrumb" lay-separator="-">
            <a href="/admin/index/index">首页</a>
            <a href="/admin/cate/lst">分类列表</a>
            <a href="###">修改分类</a>
        </span>
    <form class="layui-form" style="margin: 25px 0 0 0" method="POST" action="edit"> <!-- 提示：如果你不想用form，你可以换成div等任何一个普通元素 -->
        <input type="hidden" value="{$id}" name="id">
        <div class="layui-form-item">
            <label class="layui-form-label">上级分类 : </label>
            <div class="layui-input-inline">
                
                    <div class="layui-input-inline">
                            <select name="pid" lay-verify="required">
                                <option value="0">无</option>
                            {volist name="cateres" id="cate"}
                              <option {if condition="$cate.id eq $pid"}selected="selected"{/if} value="{$cate.id}" {if $cate.pid!=0}disabled{/if} >{$cate.level|rep_str} {$cate.cate_name}</option>
                              {/volist}
                            </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">分类名称 : </label>
            <div class="layui-input-inline">
                <input type="text" name="cate_name" value="{$name}" placeholder="请输入" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="*">立即提交</button>
            </div>
        </div>
        <!-- 更多表单结构排版请移步文档左侧【页面元素-表单】一项阅览 -->
    </form>

</div>
</body>
<script src="/static/admin/layui/layui.js"></script>
<script>
    layui.use(['element','form'],() =>{
    })

</script>
<!-- <script src="../layui/layui.all.js"></script>
<script>
    window.onload = () => {
        layui.layer.msg('Hello Layui!');
    }
</script> -->
</html>